﻿@model IEnumerable<Icoders.MarketTracker.Core.MasterData.User>

@{
    ViewBag.Title = "Field Rep List";
}

<h2>Index</h2>


<table id="data-grid">
    <tr>
        <th></th>
        <th>
            Username
        </th>
        <th>
            FirstName
        </th>
        <th>
            LastName
        </th>
        
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Assign", "Assign", new { user = item.Id }) |
            @Html.ActionLink("Details", "Details", new { userid = item.Id }) |
            @Html.ActionLink("Delete", "delete", new { userid = item.Id }, new { onclick = "return confirm('Are you sure your to delete')" })
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastName)
        </td>
    </tr>
}

</table>
